import { rehype } from 'rehype';
import type * as hast from 'hast';

export function isHComment(content: hast.RootContent): content is hast.Comment {
  return content.type === 'comment';
}
export function isHDoctype(content: hast.RootContent): content is hast.Doctype {
  return content.type === 'doctype';
}
export function isHElement(content: hast.RootContent): content is hast.Element {
  return content.type === 'element';
}
export function isHText(content: hast.RootContent): content is hast.Text {
  return content.type === 'text';
}
